#include<stdio.h>
#include <QtCore/QCoreApplication>
#include <QStringList>
#include <QFtp>
#include "ftpputfile.h"

int main(int argc, char *argv[])
{
    QCoreApplication app(argc, argv);

    QStringList args = QCoreApplication::arguments();

    if(args.count() != 2)
    {
        printf("Usage: ftpget url");
        printf("Example:");
        printf("    ftpget ftp://192.168.131.126");

       return 1;
    }


    FtpGet getter;


        if(!getter.putFile(QString(args[1])))
        {
            printf("I will break while 1\n");
        }

    printf("111111111111\n");
    //QObject::connect(&getter, SIGNAL(done()), &app, SLOT(quit()));

    return app.exec();
}
